// https://github.com/mko-x/SharedAES-GCM/blob/master/Sources/gcm.c